package com.example.makerspace.domain;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_contact_information")
@Data
@Document(indexName = "t_contact_information")
public class ContactInfoDO extends BaseDO{
    @Field(name = "username", type = FieldType.Text, analyzer="ik_max_word")
    private String username;

    @Field(name = "ref_type", type = FieldType.Text, analyzer="ik_max_word")
    private String refType;
    private int refId;
    @Field(name = "ref_name", type = FieldType.Text, analyzer="ik_max_word")
    private String refName;

    @Field(name = "name", type = FieldType.Text, analyzer="ik_max_word")
    private String name;

    @Field(name = "contact", type = FieldType.Text, analyzer="ik_max_word")
    private String contact;

    @Field(name = "email", type = FieldType.Text, analyzer="ik_max_word")
    private String email;

    @Field(name = "phone", type = FieldType.Text, analyzer="ik_max_word")
    private String phone;
}
